package sd.czw.com.mmgapp.model.personalbean;

import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/18.
 */
public abstract class ShoucangCallback extends Callback<ShoucangModel> {
    @Override
    public ShoucangModel parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        ShoucangModel userInfo = new Gson().fromJson(string, ShoucangModel.class);
        return userInfo;
    }
}